Use the same hack we use for the main executable to fool the linker
when using --as-needed.
https://bugzilla.gnome.org/show_bug.cgi?id=727948
return 0;
}
+
+
+/* HACK:
+ Add a dummy function that calls into libgnome-shell-js.so to ensure it's
+ linked to /usr/bin/gnome-shell-extension-prefs even when linking with
+ --as-needed. This function is never actually called.
+ https://bugzilla.gnome.org/show_bug.cgi?id=670477
+*/
+void _shell_link_to_shell_js (void);
+
+void
+_shell_link_to_shell_js (void)
+{
+ shell_js_add_extension_importer (NULL, NULL, NULL, NULL);
+}